package com.dh.homework;

import java.util.Arrays;

public class TestDemo03 {
    public static void main(String[] args) {
        Good[] goods = new Good[3];
        Good good1 = new Good("123", "卫龙", 3, 300);
        Good good2 = new Good("456", "可乐", 3, 400);
        Good good3 = new Good("789", "雪碧", 3, 500);
        goods[0] = good1;
        goods[1] = good2;
        goods[2] = good3;
        System.out.println(Arrays.toString(goods));

    }
}
